package com.freeter.common.enums;

/**
 * 门店状态： 1 正常、2 关停
 */
public enum ShopStatusEnum {
    MALE("正常",1), WOMAN("关停",2);

    private final String name;
    private final int code;

    ShopStatusEnum(String name, int code) {
        this.name = name;
        this.code = code;
    }
    public static String getName(int code){
        for( ShopStatusEnum st : ShopStatusEnum.values()){
            if(st.code == code){return st.name;}
        }
        return "";
    }
}
